package com.kuang.shiro.controller;

import com.kuang.shiro.entity.Person;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;


@Controller
public class HelloController {

    @Resource
    Person person;
    @GetMapping("/hello")
    public String hello(Model model){
        model.addAttribute("person",person);
        return "index";
    }
}
